﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="THistory.aspx.cs" Inherits="Search_THistory" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />

    <script src="../Js/WdatePicker.js"></script>

    <script type="text/javascript">
        window.onload = function() {
            var a = document.getElementById("loading");
            a.parentNode.removeChild(a);
        }
        document.write('<div id="loading" style="line-height:122px;"><table cellpadding="0" width="100%"><Tr><Td align="center" height="500" valign="middle"><img src="../Images/loading.gif"></td></tr></table></div>');
    </script>

    <script type="text/javascript" language="javascript">
    <!--
        function fDlg(URL, Target, form)  //
        {
            showx = event.screenX - event.offsetX - 4; // + deltaX;
            showy = event.screenY - event.offsetY + 18; // + deltaY;
            retval = window.showModalDialog(URL, "", "dialogWidth:546px; dialogHeight:329px; dialogLeft:" + showx + "px; dialogTop:" + showy + "px; status:no; directories:yes;help:no;scrollbars:no;Resizable=no; ");

            if (retval != null) {
                var splitarray = retval.split(",");
                document.forms(0).txtMat_Code.value = splitarray[1];           //物料编码
                document.forms(0).txtMat_Name.value = splitarray[2];           //物料名称
            }
        }
    //-->
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <input id="Hidden1" type="hidden" runat="server" />
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px" valign="top">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：查询管理-指令历史查询
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                    <tr>
                                        <td style="padding: 2px;">
                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                bordercolorlight="#b5d6e6">
                                                <tr style="height: 22px;">
                                                    <td style="width: 100px;" align="right">
                                                        物料名称：
                                                    </td>
                                                    <td style="width: 200px; padding-left: 2px;">
                                                        <asp:TextBox ID="txtMat_Name" runat="server" Style="width: 150px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;"></asp:TextBox>
                                                        <input onclick="fDlg('../Stock/BookList.aspx','Item',form1);return false;" src="../images/fc.gif"
                                                            style="border-right: 0px; border-top: 0px; border-left: 0px; width: 14px; border-bottom: 0px;
                                                            height: 11px" type="image" />
                                                    </td>
                                                    <td style="width: 100px;" align="right">
                                                        物料编码：
                                                    </td>
                                                    <td style="width: 200px; padding-left: 2px;">
                                                        <asp:TextBox ID="txtMat_Code" runat="server" Style="width: 100px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;"></asp:TextBox>
                                                    </td>
                                                    <%--<td style="width: 80px;" align="right">
                                                        &nbsp;
                                                    </td>
                                                    <td style="width: 200; padding-left: 2px; padding-right: 2px;">&nbsp;
                                                        <asp:TextBox ID="txtS01" runat="server" Style="width: 160px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;" ReadOnly="True"></asp:TextBox>
                                                    </td>--%>
                                                </tr>
                                                <tr style="height: 22px;">
                                                    <td style="width: 100px;" align="right">
                                                        作业方式：
                                                    </td>
                                                    <td style="width: 200px; padding-left: 2px; padding-right: 2px;">
                                                        <%--  <asp:TextBox ID="TextBox1" runat="server" Style="width: 150px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;"></asp:TextBox>--%>
                                                        <asp:DropDownList ID="ddlTaskMode" runat="server" Style="width: 155px; height: 20px;
                                                            border: solid 1px #b5d6e6; font-size: 9pt;" AutoPostBack="true">
                                                            <asp:ListItem Value=""></asp:ListItem>
                                                            <asp:ListItem Value="1">整入</asp:ListItem>
                                                            <asp:ListItem Value="3">整出</asp:ListItem>
                                                            <asp:ListItem Value="6">离线拣选</asp:ListItem>
                                                            <asp:ListItem Value="8">在线拣选</asp:ListItem>
                                                            <asp:ListItem Value="7">在线补货</asp:ListItem>
                                                            <asp:ListItem Value="12">在线盘点</asp:ListItem>
                                                            <asp:ListItem Value="70">WMS直接添加库存</asp:ListItem>
                                                            <asp:ListItem Value="80">WMS直接删除库存</asp:ListItem>
                                                            <asp:ListItem Value="40">RF入平库</asp:ListItem>
                                                            <asp:ListItem Value="50">RF平库出库</asp:ListItem>
                                                            <asp:ListItem Value="60">RF平库补货</asp:ListItem>
                                                        </asp:DropDownList>
                                                    </td>
                                                    <td style="width: 100px;" align="right">
                                                        操作时间：
                                                    </td>
                                                    <td style="padding-left: 2px; padding-right: 2px;">
                                                        <asp:TextBox ID="txtCDTS" runat="server" Style="width: 65px; height: 14px; border: solid 1px #b5d6e6;
                                                            font-size: 9pt;" onfocus="new WdatePicker(this)"></asp:TextBox>至<asp:TextBox ID="txtCDTE"
                                                                runat="server" Style="width: 65px; height: 14px; border: solid 1px #b5d6e6; font-size: 9pt;"
                                                                onfocus="new WdatePicker(this)"></asp:TextBox>
                                                    <%--<td style="width: 80px;" align="right">
                                                        &nbsp;
                                                    </td>
                                                    <td style="width: 200px; padding-left: 2px;">
                                                        &nbsp;
                                                    </td>--%>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="6">
                                                        <asp:ImageButton ID="ibtnSearch" runat="server" ImageUrl="~/Images/btn/btn_Search.gif"
                                                            OnClick="ibtnSearch_Click" />
                                                        <asp:ImageButton ID="ibtnReSet" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                            OnClick="ibtnReSet_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding: 2px">
                                            <div style="margin-left: 0px; margin-top: 3px; width: 98%px; height: 370px; overflow-x: auto;
                                                overflow-y: auto;">
                                                <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Width="99%" BorderWidth="1px"
                                                    BorderColor="#B5D6E6" CellPadding="0" AllowPaging="false" OnRowDataBound="gv_RowDataBound">
                                                    <Columns>
                                                        <%-- <asp:BoundField DataField="Pos_ID" HeaderText="货位号"></asp:BoundField>--%>
                                                        <asp:BoundField DataField="TaskMode" HeaderText="作业类型"></asp:BoundField>
                                                        <asp:BoundField DataField="WMSTypeName" HeaderText="作业名称">
                                                            <ItemStyle Width="150" HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="XType" HeaderText="过帐方式"></asp:BoundField>
                                                        <asp:BoundField DataField="Tray_ID" HeaderText="托盘号"></asp:BoundField>
                                                        <asp:BoundField DataField="CurPos_ID" HeaderText="起始货位"></asp:BoundField>
                                                        <asp:BoundField DataField="TarPos_ID" HeaderText="目标货位"></asp:BoundField>
                                                        <asp:BoundField DataField="Mat_Code" HeaderText="物料编码"></asp:BoundField>
                                                        <asp:BoundField DataField="Mat_Name" HeaderText="物料名称">
                                                            <ItemStyle Width="300" HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="S08" HeaderText="单位">
                                                            <ItemStyle Width="20" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Mat_Num" HeaderText="数量">
                                                            <ItemStyle Width="20" />
                                                        </asp:BoundField>
                                                        <%--<asp:BoundField DataField="S11" HeaderText="生产日期">
                                                            <ItemStyle Width="100" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="S14" HeaderText="备注">
                                                            <ItemStyle Width="160" />
                                                        </asp:BoundField>--%>
                                                        <asp:TemplateField HeaderText="操作时间">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LabCDT" runat="server" Text='<%# Bind("CDT") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="300" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="OID" HeaderText="操作员">
                                                            <ItemStyle Width="100" />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                                                    <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                                                </asp:GridView>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                bordercolorlight="#b5d6e6">
                                                <tr>
                                                    <td height="25" style="padding-left: 210px;" align="left">
                                                        当前页数量：
                                                        <asp:Label ID="lblCost" runat="server" Text="0"></asp:Label>
                                                    </td>
                                                    <td height="25" style="padding-left: 210px;" align="left">
                                                        总数量：<asp:Label ID="lblTotal" runat="server" Text="0"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="background-image: url(../images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
